package com.niit.agricstore.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.niit.agricstore.entity.Product;
import com.niit.agricstore.entity.Type;

import java.util.List;

public interface TypeService extends IService<Type> {

    PageInfo<Type> selectAllTypesByPage(Integer pageNum, Integer pageSize);

    Type getCurrentType(Long id);
    int deleteType(int typeId);
    int addTypes(Type type);
    Type selectTypeById(Integer typeId);
}

